<?php

namespace app\shop\controller\Product;

use think\Controller;

class Type extends Controller
{
    // 商品分类模型
    protected $TypeModel = null;

    public function _initialize()
    {
        $this->TypeModel = model('Product.Type');
    }

    public function index()
    {
        $TypeData = $this->TypeModel->order('weigh DESC')->select();

        $this->success('查询成功', null, $TypeData);
    }
}
